xen: arm: handle concatenated root tables in dump_pt_walk
authorIan Campbell <ian.campbell@citrix.com>
Thu, 18 Sep 2014 00:09:49 +0000 (01:09 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Mon, 22 Sep 2014 15:44:54 +0000 (16:44 +0100)
commitf9b1d360da5e46dbbfbc3975dba9e87adcb090ac
treefe14cf6b5104f095871796149918b3fa900908ce
parent5fa6e9abfb11c360e1f09707f6762975231d1ae1
xen: arm: handle concatenated root tables in dump_pt_walk

ARM allows for the concatenation of pages at the root of a p2m (but not a
regular page table) in order to support a larger IPA space than the number of
levels in the P2M would normally support. We use this to support 40-bit guest
addresses.

Previously we were unable to dump IPAs which were outside the first page of the
root. To fix this we adjust dump_pt_walk to take the machine address of the
page table root instead of expecting the caller to have mapped it. This allows
the walker code to select the correct page to map.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Reviewed-by: Julien Grall <julien.grall@linaro.org>
xen/arch/arm/mm.c
xen/arch/arm/p2m.c
xen/include/asm-arm/page.h